

export const getCollectDataAPI = (req)=>{
  return new Promise((resolve, reject) => {
    window.electronAPI.fetchCollectData(req, (response) => {
      resolve(response)
    });
  })
}

export const runCollectDataAPI = (req)=>{
  return new Promise((resolve, reject) => {
    window.electronAPI.runCollectData(req, (response) => {
      resolve(response)
    });
  })
}






